<h1>New sprint</h1>

<% form_for(@sprint) do |f| %>
  <%= f.error_messages %>

  <p>
    <%= f.label :title %><br />
    <%= f.text_field :title %>
  </p>
  <p>
    <%= f.label :start_time %><br />
    <%= f.date_select :start_time %>
  </p>
  <p>
    <%= f.label :end_time %><br />
    <%= f.date_select :end_time %>
  </p>
  <p>
    <%= f.label :user_id %><br />
    <%= select_from_array(:sprint, :user_id, @all_users) %>
  </p>
  <p>
    <%= f.label :status %><br />
    <%= select_from_array(:sprint, :status, @sprint_statuses) %>
  </p>
  <p>
    <%= f.submit "Create" %>
  </p>
<% end %>

<%= link_to 'Back', sprints_path %>
